﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HRDexCapstoneProject.Functions.Announcement
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string annsearch = (string)(Session["annSearch"]);
            if (annsearch != null)
            {
                AnnouncementBullitin.SelectCommand = "SELECT * FROM formAnnouncement WHERE (Subject LIKE '" + annsearch + "%')";
            }
        }
        //override protected void OnInit(EventArgs e)
        //{
        //    InitializeComponent();
        //    base.OnInit(e);
        //}

        //private void InitializeComponent()
        //{
        //    //this.cmdStore.Click += new System.EventHandler(this.cmdStore_Click);
        //    this.Load += new System.EventHandler(this.Page_Load);
        //}
    }
}